package tree.foldpaper;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class FoldPaper {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        try {
            while ((line = br.readLine()) != null) {
                String[] temp = line.split(" ");
                int a = Integer.valueOf(temp[0]);

                process(1, a, true);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    //true --> 向下折痕
    //false --> 向上折痕
    public static void process(int i, int n, boolean flag) {
        if (i > n) {
            return;
        }
        process(i + 1, n, true);
        System.out.println(flag ? "down" : "up");
        process(i + 1, n, false);
    }
}
